#include "leftform.h"
#include "ui_leftform.h"

leftForm::leftForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::leftForm)
{
    ui->setupUi(this);
}

leftForm::~leftForm()
{
    delete ui;
}
void leftForm::setAccount(const QString &account)
{
    ui->account->setText(account);
}

void leftForm::setMessage(QPixmap & pix)
{
    ui->message->setPixmap(pix.scaled(ui->message->size()));
}

void leftForm::setPix(const QPixmap &pix)
{
    ui->headPhoto->setPixmap(pix);
}

void leftForm::setTime(const QString &time)
{
    ui->time->setText(time);
}
